import { createBrowserRouter, Navigate } from "react-router-dom";
import MainLayout from "../components/Layout";
import AuthRoute from "../components/AuthRoute";
import Login from "../pages/Login";
import Home from "../pages/ProCenter/Home";
import Pg2 from "../pages/ProCenter/Pg2";
import Pg3 from "../pages/ProCenter/Pg3";
import Pg4 from "../pages/ProCenter/Pg4";
import Pg5 from "../pages/ProCenter/Pg5";
import Pg6 from "../pages/ProCenter/Pg6";
import Pg7 from "../pages/ProCenter/Pg7";
import DashboardBasic from "../pages/Dashboard/Basic";
import DashboardKanban from "../pages/Dashboard/TaskCardDetail";
import DashboardSearch from "../pages/Dashboard/Search";
import DashboardSearch2 from "../pages/Dashboard/Search2";
import DashboardFilter from "../pages/Dashboard/Filter";

import GiteeRepository from "../pages/Gitee/Repository";
import GiteeSearch from "../pages/Gitee/Search";
import MembersAndResources from "../pages/Dashboard/MembersAndResources";
import AnalysisDetail from "../pages/Dashboard/AnalysisDetail";
import TaskBoard from "../pages/Dashboard/TaskBoard";
import TaskCardCreate from "../pages/Dashboard/TaskCardCreate";
import PersonalDashboard from "../pages/LeanWorkbench/Personal";
import WorkMatters from "../pages/LeanWorkbench/WorkMatters";
import ProcessData from "../pages/LeanWorkbench/ProcessData";
import Branch from "../pages/Gitee/Branch";

// 导入试点基准模块的组件
import QueryTable from "../pages/Pro/QueryTable";
import Workbench from "../pages/Pro/Workbench";
import BasicForm from "../pages/Pro/BasicForm";
import Analysis from "../pages/Pro/Analysis";
import StepForm from "../pages/Pro/StepForm";
import Profile from "../pages/Pro/Profile";
import RefundDetail from "../pages/Pro/RefundDetail";
import Monitor from "../pages/Pro/Monitor";
import CardList from "../pages/Pro/CardList";
import ArticleSearch from "../pages/Pro/ArticleSearch";
import ProjectSearch from "../pages/Pro/ProjectSearch";
import AppSearch from "../pages/Pro/AppSearch";
import Todo from "../pages/Pro/Todo";
const router = createBrowserRouter([
  {
    path: "/login",
    element: <Login data-oid="glxoh6n" />,
  },
  {
    path: "/",
    element: (
      <AuthRoute data-oid="dl4lq:_">
        <MainLayout data-oid="qjkmkdy" />
      </AuthRoute>
    ),

    children: [
      {
        index: true,
        element: <Home data-oid="46fr2wl" />,
      },
      {
        path: "process/flow1",
        element: <Home data-oid="nsilg2t" />,
      },
      {
        path: "process/flow2",
        element: <Pg2 data-oid="zo_hewr" />,
      },
      {
        path: "process/flow3",
        element: <Pg3 data-oid=".g1-yp_" />,
      },
      {
        path: "process/flow4",
        element: <Pg4 data-oid="x5rfiuz" />,
      },
      {
        path: "process/flow5",
        element: <Pg5 data-oid="y:t3.4." />,
      },
      {
        path: "process/flow6",
        element: <Pg6 data-oid="x.c-:h8" />,
      },
      {
        path: "process/flow7",
        element: <Pg7 data-oid="2i.kbd6" />,
      },
      {
        path: "dashboard/basic",
        element: <DashboardBasic data-oid="gy239dd" />,
      },
      {
        path: "dashboard/kanban",
        element: <DashboardKanban data-oid="fygwz62" />,
      },
      {
        path: "dashboard/task-board",
        element: <TaskBoard data-oid="yzin73m" />,
      },
      {
        path: "dashboard/task-card-create",
        element: <TaskCardCreate data-oid="s.bj43b" />,
      },
      {
        path: "dashboard/search",
        element: <DashboardSearch data-oid="6df.gpq" />,
      },
      {
        path: "dashboard/search2",
        element: <DashboardSearch2 data-oid="9t9chxm" />,
      },
      {
        path: "dashboard/filter",
        element: <DashboardFilter data-oid="j45cc9e" />,
      },
      {
        path: "dashboard/members-and-resources",
        element: <MembersAndResources data-oid="vsol_5l" />,
      },
      {
        path: "dashboard/analysis-detail",
        element: <AnalysisDetail data-oid="2meqlt-" />,
      },
      {
        path: "gitee/repository",
        element: <GiteeRepository data-oid="a_h3z6j" />,
      },
      {
        path: "gitee/branch",
        element: <Branch data-oid="xkj1k.p" />,
      },
      {
        path: "gitee/search",
        element: <GiteeSearch data-oid="b8a6403" />,
      },
      {
        path: "lean-workbench/personal",
        element: <PersonalDashboard data-oid="8tvbv:a" />,
      },
      {
        path: "lean-workbench/work-matters",
        element: <WorkMatters data-oid="19f9h31" />,
      },
      {
        path: "lean-workbench/process-data",
        element: <ProcessData data-oid="-4k.0kh" />,
      },
      // 试点基准模块路由
      {
        path: "pro/query-table",
        element: <QueryTable data-oid="a:ofbh7" />,
      },
      {
        path: "pro/workbench",
        element: <Workbench data-oid="spfg:xm" />,
      },
      {
        path: "pro/basic-form",
        element: <BasicForm data-oid="c0xm340" />,
      },
      {
        path: "pro/analysis",
        element: <Analysis data-oid="xjybi19" />,
      },
      {
        path: "pro/step-form",
        element: <StepForm data-oid="fwwttg1" />,
      },
      {
        path: "pro/profile",
        element: <Profile data-oid="rmpstma" />,
      },
      {
        path: "pro/refund-detail",
        element: <RefundDetail data-oid="13aq2eb" />,
      },
      {
        path: "pro/monitor",
        element: <Monitor data-oid="u4w5z0-" />,
      },
      {
        path: "pro/card-list",
        element: <CardList data-oid="kzpvypv" />,
      },
      {
        path: "pro/article-search",
        element: <ArticleSearch data-oid="ze68n7y" />,
      },
      {
        path: "pro/project-search",
        element: <ProjectSearch data-oid="ig_nb3u" />,
      },
      {
        path: "pro/app-search",
        element: <AppSearch data-oid="oizw6nm" />,
      },
      {
        path: "todo/index",
        element: <Todo data-oid="oizw6nm" />,
      },
    ],
  },
  {
    path: "*",
    element: <Navigate to="/" replace data-oid="7s.:y.r" />,
  },
]);

export default router;
